<div class="modal-header" ng-if="settings.Type == Type.NoAddress">
    操作提示
</div>
<div class="modal-body">
    <div class="row">
        <div class="col-xs-12 text-center m-b" ng-if="settings.Type != Type.NoAddress">
            <i class="msg-icon yb-icon font-50" ng-class="{'ico-tips-warn danger-color':settings.Type == Type.Error,
                                        'ico-tips-success success-color':settings.Type == Type.Success,
                                        'ico-tips-warn warn-color':settings.Type == Type.Warn,
                                        'ico-tips-info info-color':settings.Type == Type.Note,
                                        'ico-tips-ask warn-color':settings.Type == Type.Ask}"></i>
        </div>
        <div ng-if="!(settings.Content.value | isArray)" class="col-xs-12">
            <div class="wrapper-lg padder-none text-center" style="width:400px;margin: auto;font-size: 16px">
                <span ng-bind-html="settings.Content.message" ng-if="settings.isHtml"></span>
                <span ng-if="!settings.isHtml">{{settings.Content.message}}</span><br>
                <span style="font-size: 12px;color: #666"
                      ng-if="!!settings.Content.Code">编号：{{settings.Content.Code}}</span>
            </div>
        </div>
        <div ng-if="settings.Content.value | isArray" class="col-xs-12">
            <div class="wrapper-lg padder-none text-center" style="width:400px;margin: auto;font-size: 16px">
                {{settings.Content.message}}
            </div>
            <div class="m-b-md" style="max-height:205px;overflow-y:auto;">
                <table class="table" ng-if="selectTable.tableType == 1">
                    <tr ng-hide="true || settings.HideTableHead">
                        <th>企业编号</th>
                        <th>错误信息</th>
                        <th>错误编号</th>
                    </tr>
                    <tr ng-repeat="items in settings.Content.Value track by $index">
                        <td>{{items.value}}</td>
                        <td>{{items.message}}</td>
                        <td>{{items.code}}</td>
                    </tr>
                </table>
                <table class="table" ng-if="selectTable.tableType == 2">
                    <tr ng-hide="settings.HideTableHead">
                        <th>订单编号</th>
                        <th>错误信息</th>
                        <th>错误编号</th>
                    </tr>
                    <tr ng-repeat="items in settings.Content.Value track by $index">
                        <td>{{items.value[0].OrderNum}}</td>
                        <td>{{items.message}}</td>
                        <td>{{items.code}}</td>
                    </tr>
                </table>
            </div>
        </div>
        <div ng-if="selectTable.tableType == 2&&selectTable.showInfo == 1" class="text-center">
            其他单据未直接生成入库单，请到库存管理>新增入库单列表进行入库
        </div>
        <div ng-if="selectTable.tableType == 2&&selectTable.showInfo == 2" class="text-center">
            其他单据未直接生成出库单，请到库存管理>新增出库单列表进行出库
        </div>
        <div class="col-xs-12 m-t-lg">
            <div class="text-center">
                <button class="btn btn-primary" ng-class="{true:'btn-modal-large',false:'btn-modal'}[!!settings.isLargeBtn]" ng-click="ok()"> {{settings.OkName}}</button>
                <button ng-if="settings.Type == Type.Ask||settings.Type == Type.NoAddress" class="btn btn-default" ng-class="{true:'btn-modal-large',false:'btn-modal'}[!!settings.isLargeBtn]" ng-click="cancel()">{{settings.NoName}}</button>
            </div>
        </div>
    </div>
</div>
